package models

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	UserId       int     `gorm:"type:int(11);comment:‘上传用户ID’"`
	Title        string  `gorm:"type:varchar(100);comment:‘商品标题’"`
	Price        float64 `gorm:"type:float(10,2);comment:‘价格’"`
	BrowseNumber int     `gorm:"type:int(11);comment:‘浏览量’"`
	Image        string  `gorm:"type:varchar(500);comment:‘商品图’"`
	ClassId      int     `gorm:"type:int(11);comment:‘分类ID’"`
}
